package com.example.user.v1;

import com.example.model.common.dtos.ResponseResult;
import com.example.user.service.ApUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/user")
public class ApUserController {

    @Autowired
    ApUserService apUserService;

    @PostMapping("/userList")
    public ResponseResult getUserList(){
        return ResponseResult.okResult(apUserService.list());
    }
}
